<include file="public:header" />
<!--会员列表-->
<div class="pad_10">
    <form name="searchform" method="get" >
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
            <tr>
                <td>
                <div class="explain_col">
                    <input type="hidden" name="g" value="admin" />
                    <input type="hidden" name="m" value="order_refund" />
                    <input type="hidden" name="a" value="index" />
                    <input type="hidden" name="menuid" value="{$menuid}" />
            		订单编号 :
                    <input name="orderid" type="text" class="input-text" size="20" value="{$search.orderid}" />
                    &nbsp;&nbsp;会员帐号 :
                    <input name="uname" type="text" class="input-text" size="20" value="{$search.uname}" />
                    &nbsp;&nbsp;退货/款时间 :
                    <input type="text" name="stime" id="J_time_start" class="date J_date_picker" size="15" value="{$search.stime}">
                    -<input type="text" name="etime" id="J_time_end" class="date J_date_picker" size="15" value="{$search.etime}">
                    &nbsp;&nbsp;退款状态 :
                    <select name="status" class="mr10">
                        <option value="-1">全部</option>
                        <option value="1" <if condition="$search['status'] eq 1">selected="selected"</if>>未处理</option>
                        <option value="2" <if condition="$search['status'] eq 2">selected="selected"</if>>已处理</option>
                    </select>
                    <div style="height:8px;"></div>
                    商品编码 :
                    <input name="sn" type="text" class="input-text" size="20" value="{$search.sn}" />
                    商品名称 :
                    <input name="name" type="text" class="input-text" size="20" value="{$search.name}" />
                    <input type="submit" name="search" class="btn" value="搜索" />
                    <!-- <a href="{:U('order_refund/down_xls', array('orderid'=>$search['orderid'],'uname'=>$search['uname'],'stime'=>$search['stime'],'etime'=>$search['etime'],'status'=>$search['status']))}" class="btn" style="display:inline;">导出</a> -->
                </div>
                </td>
            </tr>
        </tbody>
    </table>
    </form>

    <div class="J_tablelist table_list" data-acturi="{:U('order_refund/ajax_edit')}">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th width="20"><span data-tdtype="order_by" data-field="id">ID</span></th>
                <th width="80" align="left">会员帐号</th>
                <th width="80" align="left">订单号</th>
                <th width="60" align="left">订单价格</th>
               	<th width="100" align="left">退款类型</th>
                <th align="left">退款备注</th>
                <th width="120" align="left">申请时间</th>
                <th width="80" align="left">操作人</th>
                <th width="120" align="left">操作时间</th>
                <th width="70" align="left">实退金额</th>
                <th width="40" align="left">状态</th>
                <th width="120">{:L('operations_manage')}</th>
            </tr>
        </thead>
    	<tbody>
            <volist name="list" id="val" >
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                <td align="center">{$val.id}</td>
                <td>{$val.uname}</td>
                <td>{$val.orderid}</td>
                <td>￥{$val.order_price}</td>
                <td>{$val.type}</td>
                <td>{$val.remark}</td>
  				<td>{$val.add_time}</td>
                <td>{$val.admin_name}</td>
                <td><if condition="$val['admin_time'] neq '0000-00-00 00:00:00'">{$val.admin_time}</if></td>
                <td><if condition="$val['refund_price'] gt 0">￥{$val.refund_price}</if></td>
                <td><if condition="$val['status'] eq 1">未处理<elseif condition="$val['status'] eq 2" />已处理</if></td>
                <td align="center">
                    <!-- <a href="javascript:;" class="J_showdialog" data-uri="{:u('order_refund/check', array('id'=>$val['id'], 'type'=>'refund'))}" data-title="明细" data-id="check" data-width="1000" data-height="50">明细</a> |  -->
					<a href="{:u('order/edit', array('id'=>$val['order_id'], 'type'=>'refund'))}">详情</a>
                    <if condition="$val['status'] eq 1">
                         | <a href="javascript:;" class="J_showdialog" data-uri="{:U('order_refund/edit', array('id'=>$val['id']))}" data-title="审核退款" data-id="edit" data-width="400" data-height="50">审核退款</a>
                    <elseif condition="$val['status'] eq 2" />
                        <!-- <a href="javascript:;" class="J_showdialog" data-uri="{:U('order_refund/edit', array('id'=>$val['id']))}" data-title="退款备注" data-id="edit" data-width="400" data-height="50">退款备注</a> -->
                    </if>
                </td>
            </tr>
            </volist>
    	</tbody>
    </table>
    <div class="btn_wrap_fixed">
        <div id="pages">{$page}</div>
    </div>

    </div>
</div>
<include file="public:footer" />
